package cn.wolfcode.trip.app.controller;


import cn.wolfcode.trip.base.domain.Strategy;
import cn.wolfcode.trip.base.domain.StrategyCatalog;
import cn.wolfcode.trip.base.domain.StrategyDetail;
import cn.wolfcode.trip.base.query.StrategyQueryObject;
import cn.wolfcode.trip.base.service.IStrategyCatalogService;
import cn.wolfcode.trip.base.service.IStrategyDetailService;
import cn.wolfcode.trip.base.service.IStrategyService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 用户资源控制器
 */
@RestController
@RequestMapping("/strategyDetails")
public class StrategyDetailsController {

    @Autowired
    private IStrategyDetailService detailService;


    //根据攻略明细id获取攻略明细信息
    @GetMapping("{detailsId}")
    public StrategyDetail getStrategyDetailById(@PathVariable Long detailsId){
        return detailService.selectById(detailsId);
    }



}
